﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using WebMVC.Helpers;
using WebMVC.Resources.Models.Taxi;

namespace WebMVC.Models
{
    public class ReviewItemViewModel
    {
        public string UserName { get; set; }
        public string FullName { get; set; }

        public string CommentText { get; set; }
        public DateTime CommentDate { get; set; }
        public TaxiRating CarRate { get; set; }
        public TaxiRating ServiceRate { get; set; }
        public TaxiRating DriverRate { get; set; }
        public TaxiRating PriceRate { get; set; }
        public TaxiRating AvgRate { get; set; }
    }


    public class LastReviewItemViewModel
    {
        public string UserName { get; set; }
        public string FullName { get; set; }

        public string CommentText { get; set; }
        public DateTime CommentDate { get; set; }
        public TaxiRating AvgRate { get; set; }
        public string TaxiServiceName { get; set; }
        public int TaxiServiceId { get; set; }
        public string LogoPath { get; set; }
    }

    public class AddReviewViewModel
    {

        public int ServiceId { get; set; }
        [Required]
        [LocalizedDisplayName("CommentTextAreaLabel",NameResourceType=typeof(Names))]
        [StringLength(300)]
        public string Comment { get; set; }

        [Required]
        [LocalizedDisplayName("CommenterFieldLabel", NameResourceType = typeof(Names))]
        public string CommenterName { get; set; }

        [Required]
        public TaxiRating CarRate { get; set; }
        [Required]
        public TaxiRating ServiceRate { get; set; }
        [Required]
        public TaxiRating DriverRate { get; set; }
        [Required]
        public TaxiRating PriceRate { get; set; }

    }
}